From 56fef3211ebdbc10d316aac797fe13a6b28410b5 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 14 Jan 2009 20:06:58 +0000 Subject: [PATCH] Remove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use. * babl/babl.h: * babl/babl-internal.h: Remove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use. * babl/babl-fish-path.c: #define BABL_HARD_MAX_PATH_LENGTH locally here. svn path=/trunk/; revision=361 --- ChangeLog | 9 +++++++++ babl/babl-fish-path.c | 5 +++-- babl/babl-internal.h | 1 - babl/babl.h | 4 ---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index b526a9d..83a7637 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-01-14 Martin Nordholts + + * babl/babl.h: + * babl/babl-internal.h: Remove BABL_HARD_MAX_PATH_LENGTH from + here, it's only for internal use. + + * babl/babl-fish-path.c: #define BABL_HARD_MAX_PATH_LENGTH locally + here. + 2009-01-14 Martin Nordholts * babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index ea6b1ff..038aaaa 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -19,8 +19,9 @@ #include #include "babl-internal.h" -#define BABL_LEGAL_ERROR 0.000001 -#define BABL_MAX_COST_VALUE 2000000 +#define BABL_LEGAL_ERROR 0.000001 +#define BABL_MAX_COST_VALUE 2000000 +#define BABL_HARD_MAX_PATH_LENGTH 8 static void init_path_instrumentation (Babl *fmt_source, diff --git a/babl/babl-internal.h b/babl/babl-internal.h index 661ac9e..4a3422a 100644 --- a/babl/babl-internal.h +++ b/babl/babl-internal.h @@ -24,7 +24,6 @@ #endif #define BABL_MAX_COMPONENTS 32 -#define BABL_HARD_MAX_PATH_LENGTH 8 #define BABL_CONVERSIONS 5 #include diff --git a/babl/babl.h b/babl/babl.h index 1788d2f..f55d4d1 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -35,10 +35,6 @@ typedef union _Babl Babl; typedef struct _BablList BablList; -#ifndef BABL_HARD_MAX_PATH_LENGTH -#define BABL_HARD_MAX_PATH_LENGTH 16 -#endif - /* magic number used at the start of all babl objects, used to do * differentiation in polymorphic functions. (as well as manual * type check assertions). -- 2.30.2